<%@ Page Language="VB" AutoEventWireup="false" CodeFile="UserList.aspx.vb" Inherits="Admin_UserList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css" media="screen">
			@import url(../style/style_iframe.css);
	</style>
</head>
<body>
  <div id="pagina_iframe">	
      <h1 class="titolo_iframe" style="position: static; ">ASM - Gestione query aziendali - Gestione Utenti</h1>
  </div>
  <form id="form1" runat="server">
    <div id="main">
        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" Width="100%">
            <asp:Button ID="Button1" runat="server" Text="Nuovo Utente" />
            <asp:Button ID="Button2" runat="server" Text="Cancella utenti " />
            <asp:Button ID="Button3" runat="server" Text="Resetta password" />
            <br />
            <br />
        <asp:GridView ID="GRV_userlist" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" Font-Names="Arial" Font-Size="Medium" GridLines="Vertical" AutoGenerateColumns="false" DataKeyNames="USR_codice">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="Gainsboro" />
            <Columns>
                <asp:TemplateField>
                      <ItemTemplate>
                          <asp:CheckBox runat="server" ID="CHB_select" />
                      </ItemTemplate>
                   </asp:TemplateField>
                   <asp:TemplateField HeaderText="USER ID">
                      <ItemTemplate>
                         <asp:LinkButton ID="LNK_user_edit" Runat="Server"  Text='<%# Eval("USR_userid") %>'  CommandName="edit" ></asp:LinkButton>
                      </ItemTemplate>
                       <ItemStyle Width="200px" />
                  </asp:TemplateField>
                   <asp:TemplateField HeaderText="Nome">
                      <ItemTemplate> 
                         <asp:Label ID="LBL_user_nome" Runat="Server" Text='<%# Eval("USR_nome") %>' />
                      </ItemTemplate>
                       <ItemStyle Width="200px" />
                  </asp:TemplateField>
                   <asp:TemplateField HeaderText="Cognome">
                      <ItemTemplate> 
                         <asp:Label ID="LBL_user_cognome" Runat="Server" Text='<%# Eval("USR_cognome") %>' />
                      </ItemTemplate>
                       <ItemStyle Width="200px" />
                  </asp:TemplateField>
                   <asp:TemplateField HeaderText="Abilitato">
                      <ItemTemplate>
                         <asp:Image ID="Image1" runat="server" ImageUrl='<%# GetImageStatusUser(container.dataitem("USR_abilitato")) %>' />
                      </ItemTemplate>
                      <ItemStyle HorizontalAlign="Center" Width="100px" />
                  </asp:TemplateField>
              </Columns>
        </asp:GridView>
        </asp:Panel>
    </div>
  </form>
</body>
</html>
